package cn.xkshow.core.authorization.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ModuleOperation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "qx_module_operation")
public class ModuleOperation implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer moduleid;
	private Integer operationid;

	// Constructors

	/** default constructor */
	public ModuleOperation() {
	}

	/** full constructor */
	public ModuleOperation(Integer moduleid, Integer operationid) {
		this.moduleid = moduleid;
		this.operationid = operationid;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "moduleid", nullable = false)
	public Integer getModuleid() {
		return this.moduleid;
	}

	public void setModuleid(Integer moduleid) {
		this.moduleid = moduleid;
	}

	@Column(name = "operationid", nullable = false)
	public Integer getOperationid() {
		return this.operationid;
	}

	public void setOperationid(Integer operationid) {
		this.operationid = operationid;
	}

}